package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.BaseDao;
import com.zr.model.Point;
import com.zr.service.SavePointService;
@Service("savepoint")
public class SavePointServiceImpl implements SavePointService{
	
	@Resource
	private BaseDao baseDao;
	
	@Override
	public void savePoint(int pid,String pname,int uid,String pclass) {
		Point p = new Point();
		p.setPid(pid);
		p.setPname(pname);
		p.setUid(uid);
		p.setPclass(pclass);
		baseDao.save(p);
	}

}
